<#include "/view/templates/ace/ace-inc.ftl">
<@input url="${base}/yihang/vehicle/save">
    <input type="hidden" name="id" value="${vehicle?exists?then(vehicle.id?c, '')}"/>
       <@formgroup title='车名称'><input type="text" name="name" value="${vehicle?exists?then(vehicle.name, '')}"/></@formgroup>
       <@formgroup title='车牌号'><input type="text" name="vehicleNo" value="${vehicle?exists?then(vehicle.vehicleNo, '')}"/></@formgroup>
       <@formgroup title='是否投保'>
       <@radiobox name="vehicleIsTouBao" value="${(vehicle?exists && vehicle.vehicleIsTouBao?exists)?then(vehicle.vehicleIsTouBao, '')}" list=Constants.GLOBAL_YESNO />
       </@formgroup>
       <@formgroup title='投保开始时间'><input type="text" name="touBaoBeginTime" class="form-control date" value="${(vehicle?exists && vehicle.touBaoBeginTime?exists)?then(vehicle.touBaoBeginTime?string('yyyy-MM-dd'), '')}" ></@formgroup>
       <@formgroup title='投保结束时间'><input type="text" name="touBaoEndTime" class="form-control date" value="${(vehicle?exists && vehicle.touBaoEndTime?exists)?then(vehicle.touBaoEndTime?string('yyyy-MM-dd'), '')}" ></@formgroup>
       <@formgroup title='是否过户'>
       <@radiobox name="vehicleType" value="${(vehicle?exists && vehicle.vehicleType?exists)?then(vehicle.vehicleType, '')}" list=Constants.GLOBAL_YESNO />
       </@formgroup>
</@input>